"use client";
import React from "react";

interface CodeBlockProps {
  children: React.ReactNode; // 代码内容
}

export default function CodeBlock({ children }: CodeBlockProps) {
  return (
    <pre
      style={{ background: "#f4f4f4", padding: "10px", borderRadius: "5px" }}
    >
      <code>{children}</code>
    </pre>
  );
}
